package com.ld.service.impl;

import com.ld.basic.service.impl.BaseServiceImpl;
import com.ld.doamin.Department;

import com.ld.mapper.DepartmentMapper;
import com.ld.service.IDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class DepartmentServiceImpl extends BaseServiceImpl<Department> implements IDepartmentService {
    @Autowired
    private DepartmentMapper mapper;


    @Override
    public List<Department> getTree() {
        return mapper.selectTree();
    }


}
